import request from "@/router/axios";

// 获取投诉列表
export const getComplaintList = (params) => request({
  url: "/api/admin/lineOrderComplaint/pagination",
  method: "get",
  params: params
});

// 审核投诉
export const reviewComplaint = (data) => request({
  url: `/api/admin/lineOrderComplaint/audit/${data.id}`,
  method: "post",
  data: {
    auth_status: data.auth_status,
    honesty_deduction: data.honesty_deduction,
    reject_reason: data.reject_reason
  }
});
